  <?php 
  $repository=BO::getProductBORepository();
  $id=getFormValue('id');
  $productBO = $repository->getProductBO($id);	?>
<div class="panel panel-default">
  <!-- Default panel contents -->
  <div class="panel-heading">Product : <?php echo $productBO->getName() ?></div>
  <div class="panel-body">
		<p>
		
		</p>	

	  	
		<ul class="nav nav-tabs" role="tablist">
		  <li class="active"><a href="#">General</a></li>
		  <li><a href="dispatch.php?target=product_attribute-edit&id=<?php echo $productBO->getID() ?>">Attributes</a></li>
		  <li><a href="dispatch.php?target=product_images-edit&id=<?php echo $productBO->getID() ?>">Images</a></li>
		  <li><a href="dispatch.php?target=product_pricing-edit&id=<?php echo $productBO->getID() ?>">Pricing</a></li>
		  <li><a href="dispatch.php?target=product_categories-edit&id=<?php echo $productBO->getID() ?>">Categories</a></li>
		  <li><a href="dispatch.php?target=product_variations-edit&id=<?php echo $productBO->getID() ?>">Variations</a></li>
		</ul>
		<div class="panel">	
			<div class="panel-body">
<div class="bs-example">
    <h1>Product : General Information</h1>
    <form class="form-horizontal" action="dispatch.php" method="post">
		<input type="hidden" name="target" value="product-save">
		<input type="hidden" name="id" value="<?php echo $productBO->getID() ?>">
        <div class="form-group">
            <label class="control-label col-xs-3" for="inputEmail">Name:</label>
            <div class="col-xs-9">
                <input type="input" name="name" value="<?php echo $productBO->getName() ?>" class="form-control" id="inputName" placeholder="Name">
            </div>
        </div>
		<div class="form-group">
            <label class="control-label col-xs-3" for="inputEmail">ProductID :</label>
            <div class="col-xs-9">
                <input type="input" name="sku" value="<?php echo $productBO->getSKU() ?>"  class="form-control" id="inputName" placeholder="SKU">
            </div>
        </div>
		
		<div class="form-group">
            <label class="control-label col-xs-3" for="inputEmail">SEO ID:</label>
            <div class="col-xs-9">
                <input type="input" name="seoid" value="<?php echo $productBO->getSeoID() ?>"  class="form-control" id="inputName" placeholder="SEO ID">
            </div>
        </div>
        
        <!--
		<div class="form-group">
            <label class="control-label col-xs-3">Date of Birth:</label>
            <div class="col-xs-3">
                <select class="form-control">
                    <option>Date</option>
                </select>
            </div>
            <div class="col-xs-3">
                <select class="form-control">
                    <option>Month</option>
                </select>
            </div>
            <div class="col-xs-3">
                <select class="form-control">
                    <option>Year</option>
                </select>
            </div>
        </div>
		-->
        <div class="form-group">
            <label class="control-label col-xs-3" for="postalAddress">Short Description:</label>
            <div class="col-xs-9">
                <textarea rows="3" name="desc"  class="form-control" id="postalAddress" placeholder="Short Description"><?php echo $productBO->getDesc() ?></textarea>
            </div>
        </div>
		<div class="form-group">
            <label class="control-label col-xs-3" for="postalAddress">Long Description:</label>
            <div class="col-xs-9">
                <textarea rows="3" name="longdesc"  class="form-control" id="postalAddress" placeholder="Long Description"><?php echo $productBO->getLongDesc() ?></textarea>
            </div>
        </div>
		
		
        <div class="form-group">
            <div class="col-xs-offset-3 col-xs-9">
                <label class="checkbox-inline">
					<input type="checkbox" name="online" value="1" <?php if($productBO->isOnline()) {?> checked <?php } ?> >  Online.
                </label>
            </div>
        </div>
        
		<br>
        <div class="form-group">
            <div class="col-xs-offset-3 col-xs-9">
                <input type="submit" class="btn btn-primary" value="Submit">
                <input type="reset" class="btn btn-default" value="Reset">
            </div>
        </div>
    </form>
</div>
			</div>
		</div>
		
	</div>
	
	 <div class="panel-footer">
		<div class="btn-group">
			<form action="dispatch.php" method="post">
				<button type="submit" name="target" value="product-add" class="btn btn-default btn-lg">
					<span class="glyphicon glyphicon-plus"></span> New Product
				</button>
			</form>
		</div>
	</div>	
</div>	
		  
		  
		  
